package me.exchange.com.config;


import cn.jpush.api.JPushClient;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

import javax.annotation.PostConstruct;

@Configuration
public class JiGuangConfig {
    // 极光官网-个人管理中心-appkey
    //c8609dc6c3889ea1ae121db6
    private final String appkey ="c8609dc6c3889ea1ae121db6";
    // 极光官网-个人管理中心-点击查看-secret
    private final String secret ="65843bf98385d9baf0e2efba";
    //65843bf98385d9baf0e2efba
    private JPushClient jPushClient;

    // 推送客户端
    @PostConstruct
    public void initJPushClient() {
        jPushClient = new JPushClient(secret, appkey);
    }

    // 获取推送客户端
    public JPushClient getJPushClient() {
        return jPushClient;
    }
}
